package com.qcxk.yuqian.rtu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qcxk.yuqian.rtu.controller.model.query.DeviceAlarmDetailDTO;
import com.qcxk.yuqian.rtu.controller.model.query.RtuRunInfoDTO;
import com.qcxk.yuqian.rtu.entity.DeviceAlarmDetail;
import com.qcxk.yuqian.rtu.entity.RtuRunInfo;
import com.qcxk.yuqian.rtu.mapper.DeviceAlarmDetailMapper;
import com.qcxk.yuqian.rtu.mapper.RtuRunInfoMapper;
import com.qcxk.yuqian.rtu.service.IDeviceAlarmService;
import com.qcxk.yuqian.rtu.service.IRtuRunInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @auther lp
 * @create 2021-11-15 03:21:45
 * @describe 服务实现类
 */
@Service
public class DeviceAlarmImpl extends ServiceImpl<DeviceAlarmDetailMapper, DeviceAlarmDetail> implements IDeviceAlarmService {
    @Autowired
    private DeviceAlarmDetailMapper deviceAlarmDetailMapper;


    @Override
    public List<DeviceAlarmDetailDTO> findDataList(DeviceAlarmDetailDTO dto) {

        return deviceAlarmDetailMapper.findDeviceAlarmDetailList(dto);
    }
    @Override
    public void addDeviceAlarmDetail(DeviceAlarmDetail dad) {
        deviceAlarmDetailMapper.addDeviceAlarmDetail(dad);
    }
}
